import React from "react"
import Login from "../views/Login"
import Home from "../views/Home"
import { Navigate } from 'react-router-dom'
import User from "../components/user"
import Account from "../components/account"
import Accounts from "../components/accounts"
import Control from '../components/Control'
const arr = [
    {
        path: '/',
        element:<Navigate to={'/home/user'}></Navigate>
    },
    {
        path: '/login',
        element: <Login />, 
    },
    {
        path: '/home',
        element: <Home></Home>,
        children: [
            {
                path: 'user',
                element:<User></User>
            },
            {
                path: 'account',
                element:<Account></Account>
            },
            {
                path: 'accounts',
                element:<Accounts></Accounts>
            },
            {
                path: 'control',
                element:<Control></Control>
            }
        ]
    }
]
export default arr